package org.dromara.quick.chat.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.quick.chat.domain.ImFriends;
import org.dromara.quick.chat.model.bo.query.ImFriendsBo;
import org.dromara.quick.chat.model.statics.FriendsGroupStatics;
import org.dromara.quick.chat.model.vo.FriendsDetailVO;
import org.dromara.quick.chat.model.vo.ImFriendsVO;

/**
* @author Stars
* @description 针对表【im_friends(好友表（通讯录），记录用户之间的好友关系及相关设置)】的数据库操作Mapper
* @createDate 2025-03-04 22:33:21
* @Entity org.dromara.quick.chat.domain.ImFriends
*/
public interface ImFriendsMapper extends BaseMapperPlus<ImFriends, ImFriendsVO> {


    /**
     * 通讯录-好友详细
     * @param imFriendsBo
     * @return
     */
    FriendsDetailVO selectFriendsDetail(@Param("imFriendsBo") ImFriendsBo imFriendsBo);

    /**
     * 统计临时好友数量和总的好友数量
     */
    FriendsGroupStatics selectFriendsCount(@Param(Constants.WRAPPER) LambdaQueryWrapper<ImFriends> lambdaQueryWrapper);

}




